<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0062)http://115.28.87.22:8888/business/BusinessBillListForSetu.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>安装 | 管理易-广告加工制作管理软件  企业版 9.28  | 易凯软件</title>
<script src="../js/minierp.js"></script>

<link rel="stylesheet" type="text/css" href="../css/base.css">
<link href="../css/Query.css" rel="stylesheet" type="text/css">
<script src="../js/QueryList.js"></script>
<script src="../js/popup_ext.js"></script>
<script language="javascript">
	function doShow(id){
		showWin(1024,600,'../business/BusinessBillInfo.html?type=SETU&id='+id);
	}
	function doSetu(id){
		var url="../business/SetuBillNew.html?bb_id="+id;
		ShowIframe("安装",url,1024,500,"doSetuCallBack("+id+")");
	}
	function doSetuCallBack(id){
		if(popRetVal!=null){
			var url=getProgramLocation()+"&current_page=1";
			ShowConfirm('确认框','现在打印安装单？',340,80,"doSetuCallBackPriExt('"+url+"',"+popRetVal+")");
		}else{
			document.getElementById("search_key").select();
		}
	}
	function doSetuCallBackPriExt(url,id){
		if(popRetVal!=null){
			window.location=url+"&print_id="+id;
		}else{
			window.location=url;
		}
	}
	function getProgramLocation(){
		var searchKey=encodeURIComponent("");
		return "../business/BusinessBillListForSetu.html?search_key="+searchKey+"&type=&ts_id=1";
	}
	function doSearch(){
		var type=document.getElementById("type").value;
		var tsId=document.getElementById("ts_id").value;
		var searchKey=encodeURIComponent(document.getElementById("search_key").value.trim());
		window.location="../business/BusinessBillListForSetu.html?search_key="+searchKey+"&type="+type+"&ts_id="+tsId+"&need_pop=Y";//点查询时才需要自动弹窗
	}
	function doGo(pageIndex){
		window.location=getProgramLocation()+"&current_page="+pageIndex;
	}
	function doJump(pageIndex){
		if(window.event.keyCode==13){
			doGo(pageIndex);
		}
	}
	function DoubleClick(it){
		var ob_arr = document.getElementsByName("query_checkbox");
		var str="";
		if(ob_arr.length>=it.getAttribute("index")){
			str=ob_arr[it.getAttribute("index")-1].value;
		}
		if(str==""){
			return;
		}
		doSetu(str);
	}
	function doCancel(){
		window.close();
	}
	function doInit(){
		//Window_Onload();
		document.getElementById("search_key").select();
		if(window.screen.availWidth>1024){
			var w=window.screen.availWidth*0.98;
			window.resizeTo(w,600);
			document.getElementById("mainDiv").style.width=(w-60)+"px";
			//居中
			var resizeWinTop=(window.screen.availHeight-600)/2;
			var resizeWinLeft=(window.screen.availWidth-w)/2;
			window.moveTo(resizeWinLeft,resizeWinTop);
		}
		
	}
	function checkSearchKey(){
		if(window.event.keyCode==13){
			doSearch();
		}
	}
	function refreshWin(){
		if(popRetVal!=null){
			window.location=getProgramLocation()+"&current_page=1";//有print_id,need_pop这些参数,所以这里不能直接refresh
		}
	}
	function doPrintCallBack(){
		var printId="";
		if(printId!=null && printId!=""){
			showWin(900,600,"../business/SetuBillPrint.html?id="+printId);
		}else{
			
		}
	}
</script>
</head>
<body oncontextmenu="return false" onload="doInit();doPrintCallBack();" class="sheet">
<div class="sheet-main" style="width: 1508px;" id="mainDiv">
  <div class="sheet-top">
    <div class="content">
      <h2>工程安装</h2>
      <p>根据业务单的完工状态、安装状态进行分类查询，生成安装单。<span style="color:blue">蓝色</span>表示业务单已开过安装单</p>
    </div>
  </div>
  <div class="sheet-list">
    <div class="search-business">
      <div class="content">
        <table width="100%" id="searchTbl">
          <tbody>
            <tr>
              <td align="right">
				  <select name="ts_id" id="ts_id">
					<option value="0">==请选择账套==</option>
					
					<option value="1" selected="">新异</option>
					
					<option value="2">网络公司</option>
					
		  		  </select>
				  <select name="type" id="type">
				  	<option value="">==全部==</option>
					<option value="COMP">完工未安装</option>
				  </select>
				  <input type="text" class="TextBox" id="search_key" name="search_key" onkeyup="checkSearchKey();" style="width:80px" value="" title="以客户名称、客户拼音字头、摘要、业务单号、电话进行模糊查询">
				  <input type="button" class="buttom search-but" value=" 查 询" onclick="doSearch();" title="以客户名称、客户拼音字头、摘要、业务单号、电话进行模糊查询">
			  </td>
            </tr>    
           </tbody>      
        </table>
      </div>
	  
<table width="98%" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr id="errorMsgTr" style="display:none">
	  <td>
	  	<div class="msg-error" id="errorMsgTd">
	  	
	  	</div>
	  </td>
	</tr>
</tbody></table>
      <div class="table-list">
        <table width="100%">      
			<tbody><tr>
				<th width="12%">单号</th>
				<th width="8%">订货日期</th>
				<th width="20%">订货单位</th>
				<th width="22%">摘要</th>
				<th width="10%">交货日期</th>
				<th width="20%">安装要求</th>
				<th width="8%">操作</th>
			</tr>
			
				
				
				
				
				<tr class="query_list_data_tr1" index="1" style="color:black;cursor:pointer;" defaultfontcolor="black" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
					<td>
						<input type="radio" name="query_checkbox" value="1292" style="display:none">
						E2016090058
					</td>
					<td>2016-09-08</td>
					<td>开封鼎立(皇甫冰洁)</td>
					<td>标牌+标识　送货安装</td>
					<td>
						
						2016-09-20 22:36
						
					</td>
					<td></td>
					<td>
						<a href="javascript:doShow(&#39;1292&#39;);">查看</a>
						<a href="javascript:doSetu(&#39;1292&#39;);">开安装单</a>
					</td>
				</tr>
			
		</tbody></table>
			
    <div class="table-bot">
    	
    	
    	 
    	  <img src="../images/but001.gif">
    	  <img src="../images/but002.gif">
    	    	
    	第 <input type="text" name="pageNumber" style="width:30px" value="1" onkeydown="javascript:doJump(this.value);" class="TextBox"> 页 
    	共1页
		
		
        <img src="../images/but003.gif">
        <img src="../images/but004.gif">
		
    </div>
      </div>     
    </div>
  </div>
</div>



</body></html>